package com.spddr.pmos.domain;

public enum Period {
	All(0), Valley(1), Shoulder(2), Peak(3);

	public final int id;

	private Period(int id) {
		this.id = id;
	}

	public static Period valueOf(int id) {
		for (Period i : values()) {
			if (i.id == id)
				return i;
		}

		return All;
	}
}
